package com.cube.truthseer.entity.user.vo;

import com.cube.truthseer.common.utils.BeanCopyUtils;
import com.cube.truthseer.entity.user.po.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description:
 * @author: asd
 * @time: 2024/3/14 11:51
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserVo {
    private String sign;
    private String email;
    private String avatar;
    private Integer isvip;
    private String name;
    private Integer sex;
    public static UserVo valueOf(User user){
        UserVo userVo = BeanCopyUtils.copyBean(user,UserVo.class);
        return userVo;
    }
}
